<?php
/**
 * news actions.
 *
 * @package    Nika
 * @subpackage news
 * @author     Alexey Shapran (alexey.shapran@gmail.com)
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class newsComponents extends sfComponents
{

	public function executeShowsomeitems()
  {
	$this->pager = new sfDoctrinePager('news',sfConfig::get('app_maxnewsperpage'));
	$this->pager->setQuery( News::getLastNews() );
	$this->pager->setPage('1');
	$this->pager->init();
  }

}
